home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Test Payment"
- ClientHeight = 2160
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 5340
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2160
- ScaleWidth = 5340
- WhatsThisHelp = -1 'True
- Begin VB.TextBox Text1
- Height = 495
- Left = 240
- TabIndex = 5
- Top = 1440
- Width = 4935
- End
- Begin VB.TextBox txtOrderCount
- Enabled = 0 'False
- Height = 375
- Left = 2880
- TabIndex = 2
- Text = "0"
- Top = 120
- Width = 375
- End
- Begin VB.TextBox txtNumOrders
- Height = 375
- Left = 3600
- TabIndex = 1
- Text = "1"
- Top = 120
- Width = 375
- End
- Begin VB.CommandButton Command1
- Caption = "Test Payment Authorization"
- Height = 495
- Left = 1560
- TabIndex = 0
- Top = 720
- Width = 2175
- End
- Begin VB.Label Label13
- Caption = "of"
- Height = 375
- Left = 3360
- TabIndex = 4
- Top = 120
- Width = 375
- End
- Begin VB.Label Label12
- Alignment = 1 'Right Justify
- Caption = "# of times to post payment"
- Height = 375
- Left = 1200
- TabIndex = 3
- Top = 120
- Width = 1575
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim objPaymentAuthorization As AWAuthorize.AuthorizePayment
- Dim i As Integer
- txtOrderCount.Text = 0
- For i = 1 To txtNumOrders.Text
- Set objPaymentAuthorization = CreateObject("AWAuthorize.AuthorizePayment")
- lngAuthorization = objPaymentAuthorization.AuthorizePayment(1, "33333333333333", "Tracey Trewin", 500.25, 6 / 30 / 97)
- Text1.Text = "Authorization Number is: " & lngAuthorization
- txtOrderCount.Text = txtOrderCount.Text + 1
- Form1.Refresh
- Set objPaymentAuthorization = Nothing
- End Sub
-